//菜单
let express = require('express');
let path = require('path');
//引入自定义模块
let user = require('../model/user');
let menu = require('../model/menu');

var router = express.Router();


router.get('/',function(req,res,next){
    res.sendStatus(404);
});
/**
 *登录验证功能
 */
router.post('/',function (req,res,next){
    let sellerID = req.body.sellerID;
    menu.search(sellerID,function (result){
        if(result.length === 0){
            res.send({menuInfoStatus:1});
        }
        else {
            res.send(result[0]);
        }
    })
})
module.exports = router;